package com.mc.code.service;

import com.mc.code.entity.CodeItems;
import com.mc.code.entity.ItemStage;
import com.mc.code.entity.Stage;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface StageService {
    List<CodeItems> partakeItems(String userNo, int currentPage, int pageCount);

    void insertItemStage(Integer itemNo, String partakeNo);

    void divideInsertStage(int i,String userNo, int itemNo, int stageNum, String stageName, String stageDate, double stageMoney, String stageExplain);

    void updateStageCondition(int itemNo, String userNo);

//    查询有没有划分阶段
    int selectStageCondition(Integer itemNo);

    List<Stage> stageDetail(Integer partakeNo, Integer itemNo);

    List<ItemStage> itemStage(Integer itemNo);

    void StageCondition(String userNo, Integer itemNo, Integer stageCondition);

    void stageDetailAgree(Integer itemNo, String partakeNo);

    int stageNum(Integer itemNo, String partakeNo);

    void stageGeneral(Integer itemNo, String partakeNo, int i);

    List<Stage> stageDetailStart(String userNo, Integer itemNo);

    int stageCurrent(Integer itemNo, String userNo);

    void updateStageCurrent(String partakeNo, Integer stageNum, Integer itemNo);

    int stageNow(Integer itemNo, String userNo);

    void uploadStageFile(String filename, Integer itemNo, String partakeNo, Integer stageNum);

    List<ItemStage> itemStartStage(Integer itemNo);

    String downLoadStageFile(Integer itemNo, String partakeNo, int stageNow);

    void ApplyStageCurrent(Integer itemNo, String partakeNo, Integer checkValue);

    void ApplyStageNow(Integer itemNo, String partakeNo, Integer checkValue);

    void payPartakeNo(double money, String partakeNo);

    void finishItem(Integer itemNo);

    String stageStart(Integer itemNo);

    int stageConditiondivision(Integer itemNo, String userNo);

    void returnStage(Integer itemNo, String partakeNo, Integer current, Integer now);

    int getMyPartakeTotalPage(int pageCount, String userNo);
}
